<?php
include_once 'models/user/user.php';
include_once 'models/user/user_profile.php';
/**
 * Хендлер получаения профиля пользователя
 **/ 
class EditUserProfile extends WallrideHandler{

  protected
    $userId = null,
    $action = null,
    $first_name = null;

  public function setParams($params){
    if (isset($params['userId']) && !empty($params['userId'])) $this->userId = $params['userId']->data['user_id'];
    if (isset($params['action']) && !empty($params['action'])) $this->action = $params['action'];
    if (isset($params['first_name']) && !empty($params['first_name'])) $this->first_name = $params['first_name'];
  }

  public function process() {
    //echo '<pre>'; var_dump($this); echo '</pre>';

    return 'edit';
  }
}
?>
